<?php

namespace App\Http\Controllers\Api;

use App\Admin\Repositories\TradeProduct;
use Illuminate\Http\Request;

class QuotationController extends ApiBaseController
{
    public function index(Request $request)
    {
        $type = $request->input('type', 0);
        $data = [
            "channels" => TradeProduct::channels(),
            "list" => \App\Models\TradeProduct::homeList($type)
        ];

        return $this->success($data);
    }

}
